package com.y2.authprj.bean.auth.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class RoleauthorityInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1536723727215236676L;

	private Integer roleauthorityId;
	private Integer roleId;
	private Integer functionauthorityId;
	private Integer deleteFlag;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	//默认为国际时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date createtTime;
	
	public Integer getRoleauthorityId() {
		return roleauthorityId;
	}
	public void setRoleauthorityId(Integer roleauthorityId) {
		this.roleauthorityId = roleauthorityId;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public Integer getFunctionauthorityId() {
		return functionauthorityId;
	}
	public void setFunctionauthorityId(Integer functionauthorityId) {
		this.functionauthorityId = functionauthorityId;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public Date getCreatetTime() {
		return createtTime;
	}
	public void setCreatetTime(Date createtTime) {
		this.createtTime = createtTime;
	}
	public RoleauthorityInfo(Integer roleauthorityId, Integer roleId, Integer functionauthorityId, Integer deleteFlag,
			Date createtTime) {
		super();
		this.roleauthorityId = roleauthorityId;
		this.roleId = roleId;
		this.functionauthorityId = functionauthorityId;
		this.deleteFlag = deleteFlag;
		this.createtTime = createtTime;
	}
	public RoleauthorityInfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Roleauthority [roleauthorityId=" + roleauthorityId + ", roleId=" + roleId + ", functionauthorityId="
				+ functionauthorityId + ", deleteFlag=" + deleteFlag + ", createtTime=" + createtTime + "]";
	}
	
	
}
